package baseproject.com.mybaseproject.mvp.contract

import com.bybops.model.bean.LockDetail


/**
 * Created by wm on 2018/9/8.
 *
 * 文件描述：
 *
 * 修改原因：
 *
 */
interface NewDeviceInitFragmentContract {

    interface View : IContract.IBaseView {
        fun onActiveDeviceSuccess(data : LockDetail)
        fun getDetailByBarCodeSuccess(data : LockDetail)
        fun getDviceId(): String?
        //设置蓝牙锁的电量
        fun setLockVoltage(voltage: String?)
    }

    interface Presenter : IContract.IBasePresenter<NewDeviceInitFragmentContract.View> {
        /**
         * 启用新设备
         */
        fun activeDevice(params : HashMap<String , String?>)
        /**
         * 根据蓝牙锁id获取mac地址
         */
        fun getDetailByBarCode()
    }
}